package com.example.dto;

import lombok.Data;

import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.Size;

@Data
public class AnnouncementRequest {
    @NotBlank(message = "标题不能为空")
    @Size(min = 3, max = 100, message = "标题长度必须在3-100字符之间")
    private String title;

    @NotBlank(message = "内容不能为空")
    @Size(min = 10, max = 5000, message = "内容长度必须在10-5000字符之间")
    private String content;

    // 使用 @Schema 添加API文档说明
    private Boolean isPublished = false;  // 默认为草稿状态
}